]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Do not set entries' ClutterText:editable property
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 18 Mar 2020 21:20:33 +0000 (22:20 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 29 Mar 2020 20:12:57 +0000 (22:12 +0200)
The property influences the text's (and thus entry's) minimum width[0],
which is generally not what we want. And as we now prevent text from
being entered in non-reactive entries by other means, we can simply
drop it.

[0] https://gitlab.gnome.org/GNOME/mutter/-/blob/master/clutter/clutter/clutter-text.c#L2940

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2423

js/gdm/authPrompt.js
js/ui/appDisplay.js
js/ui/components/keyring.js
js/ui/shellMountOperation.js

index a9623f5705a207a269df3bdecb4d65d600b0f5ba..3434de0cf01b8cdf76ea8a7d439efe56ab72a1fa 100644 (file)
@@ -425,7 +425,6 @@ var AuthPrompt = GObject.registerClass({
 
     updateSensitivity(sensitive) {
         this._entry.reactive = sensitive;
-        this._entry.clutter_text.editable = sensitive;
     }
 
     vfunc_hide() {
index a8c0cb3c22da1b1d06b1540bb8e463dd3e552795..4f3d88df540a43db706e6c5628aba7c6087fa985 100644 (file)
@@ -691,7 +691,6 @@ var AllView = GObject.registerClass({
 
             // Toggle search entry
             Main.overview.searchEntry.reactive = !isOpen;
-            Main.overview.searchEntry.clutter_text.editable = !isOpen;
 
             this._displayingPopup = isOpen;
         });
index c0191fbba907c8c14d21c42180e1cb4af19bb5d9..8623f2fdd4cd835b4c3b513b64e94e7fffdf77fb 100644 (file)
@@ -111,15 +111,11 @@ class KeyringDialog extends ModalDialog.ModalDialog {
     }
 
     _updateSensitivity(sensitive) {
-        if (this._passwordEntry) {
+        if (this._passwordEntry)
             this._passwordEntry.reactive = sensitive;
-            this._passwordEntry.clutter_text.editable = sensitive;
-        }
 
-        if (this._confirmEntry) {
+        if (this._confirmEntry)
             this._confirmEntry.reactive = sensitive;
-            this._confirmEntry.clutter_text.editable = sensitive;
-        }
 
         this._continueButton.can_focus = sensitive;
         this._continueButton.reactive = sensitive;
index e17b0bc174eefed93d720c1b0dfb53f52924898b..dc620a09d10b75795484c28206e6eead8ce1c112 100644 (file)
@@ -447,12 +447,8 @@ var ShellMountPasswordDialog = GObject.registerClass({
         let useKeyfiles = this._keyfilesCheckbox.checked;
         this._passwordEntry.reactive = !useKeyfiles;
         this._passwordEntry.can_focus = !useKeyfiles;
-        this._passwordEntry.clutter_text.editable = !useKeyfiles;
-        this._passwordEntry.clutter_text.selectable = !useKeyfiles;
         this._pimEntry.reactive = !useKeyfiles;
         this._pimEntry.can_focus = !useKeyfiles;
-        this._pimEntry.clutter_text.editable = !useKeyfiles;
-        this._pimEntry.clutter_text.selectable = !useKeyfiles;
         this._rememberChoice.reactive = !useKeyfiles;
         this._rememberChoice.can_focus = !useKeyfiles;
         this._keyfilesLabel.visible = useKeyfiles;